package kafka.examples.my;

import java.util.concurrent.TimeUnit;

/**
 *
 */
public abstract class Sleep {

    public static void sleep(TimeUnit unit, int duration){
        try {
            unit.sleep(duration);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }

}
